/**
 * 
 */
package ebook.client.widgets;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.RichTextArea;
import com.google.gwt.user.client.ui.Widget;

import ebook.client.T2epub;
import com.google.gwt.user.client.ui.TextBox;

/**
 * @author admin
 *
 */
public class Widget1 extends Composite  {

	private static Widget1UiBinder uiBinder = GWT.create(Widget1UiBinder.class);

	interface Widget1UiBinder extends UiBinder<Widget, Widget1> {}

	T2epub parent;
	
	@UiField public Button convertButton;
	@UiField public TextBox Title;
	@UiField public TextBox Chap;
	@UiField public RichTextArea ContentOfChap;
	
	public Widget1(T2epub parent){
		this.parent = parent;
	}
	
	public Widget1() {
		initWidget(uiBinder.createAndBindUi(this));
	}

	public Widget1(String firstName) {
		initWidget(uiBinder.createAndBindUi(this));
		convertButton.setText(firstName);
	}
	
}
